package com.hht.kotlineee.net.model

data class ApiResponse<T>(val errorCode :Int = -1,val errorMsg:String,val data:T) : BaseResponse<T>() {

    override fun isSuccess(): Boolean {
        return errorCode == 0
    }

    override fun getResponseCode(): Int {
        return errorCode
    }

    override fun getResponseMsg(): String {
        return errorMsg
    }

    override fun getResponseData(): T {
        return data
    }

}